package com.fivefu.core.skyeye.event.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "redis-stream")
public class RedisStringStreamBean {

    /**
     * 智能识别服务地址
     * eg: http://192.168.0.9:8020/api/v1
     */
    private String serviceUrl;

    /**
     * 视频播放形式
     */
    private String streamType;

    /**
     * redis string队列
     */
    List<StreamBean> stringRedis;

    /**
     * redis map队列
     */
    List<StreamBean> mapRedis;

    public String getServiceUrl() {
        return serviceUrl;
    }

    public void setServiceUrl(String serviceUrl) {
        this.serviceUrl = serviceUrl;
    }

    public String getStreamType() {
        return streamType;
    }

    public void setStreamType(String streamType) {
        this.streamType = streamType;
    }

    public List<StreamBean> getStringRedis() {
        return stringRedis;
    }

    public void setStringRedis(List<StreamBean> stringRedis) {
        this.stringRedis = stringRedis;
    }

    public List<StreamBean> getMapRedis() {
        return mapRedis;
    }

    public void setMapRedis(List<StreamBean> mapRedis) {
        this.mapRedis = mapRedis;
    }

    @Override
    public String toString() {
        return "RedisStringStreamBean{" +
                "serviceUrl='" + serviceUrl + '\'' +
                ", streamType='" + streamType + '\'' +
                ", stringRedis=" + stringRedis +
                ", mapRedis=" + mapRedis +
                '}';
    }
}
